package com.mars.module.admin.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import cn.afterturn.easypoi.excel.annotation.Excel;
import com.mars.module.system.entity.BaseEntity;

/**
 * 菜谱步骤对象 ap_cookbook_instruction
 *
 * @author mars
 * @date 2024-02-24
 */

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "菜谱步骤对象")
@Builder
@Accessors(chain = true)
@TableName("ap_cookbook_instruction")
public class ApCookbookInstruction extends BaseEntity {

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 食谱ID
     */
    @Excel(name = "食谱ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "食谱ID")
    private String foodId;

    /**
     * 食谱名称
     */
    @ApiModelProperty(value = "食谱名称")
    private String foodName;

    /**
     * 步骤序号
     */
    @Excel(name = "步骤序号")
    @ApiModelProperty(value = "步骤序号")
    private Integer step;
    /**
     * 名称
     */
    @Excel(name = "名称")
    @ApiModelProperty(value = "名称")
    private String description;
    /**
     * 图片
     */
    @Excel(name = "图片")
    @ApiModelProperty(value = "图片")
    private String url;
}
